/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2025-07-07     Lenovo       the first version
 */
#ifndef WIFI2_H_
#define WIFI2_H_

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include <errno.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <rtdef.h>
#include <rtdbg.h>

#include <wlan_mgnt.h>
#include <wlan_prot.h>
#include <wlan_cfg.h>
#include <spi_wifi_rw007.h>
#include <wifi2.h>

#define WLAN_SSID "mofish"
#define WLAN_PASSWORD "11111111"
#define NET_READY_TIME_OUT (rt_tick_from_millisecond(15 * 1000))

void print_wlan_information(struct rt_wlan_info *info,int index);
int wifi_autoconnect(void);
void saomiaoredian(void);
void wlan_scan_report_hander(int event,struct rt_wlan_buff *buff,void *parameter);
void wifi_thread_entry(void *parameter);
void lianjie();
void wlan_station_disconnect_handler(int event, struct rt_wlan_buff *buff, void *parameter);
void wlan_ready_handler(int event, struct rt_wlan_buff *buff, void *parameter);
void wlan_scan_done_hander(int event,struct rt_wlan_buff *buff,void *parameter);
void wlan_connect_fail_handler(int event, struct rt_wlan_buff *buff, void *parameter);
void wlan_connect_handler(int event, struct rt_wlan_buff *buff, void *parameter);


#endif /* WIFI2_H_ */
